package com.ruoyi.cems.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cems.mapper.BmsEmergencyManualGroupMapper;
import com.ruoyi.cems.domain.BmsEmergencyManualGroup;
import com.ruoyi.cems.service.IBmsEmergencyManualGroupService;

/**
 * 应急手册目录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-14
 */
@Service
public class BmsEmergencyManualGroupServiceImpl implements IBmsEmergencyManualGroupService 
{
    @Autowired
    private BmsEmergencyManualGroupMapper bmsEmergencyManualGroupMapper;

    /**
     * 查询应急手册目录
     * 
     * @param ID 应急手册目录主键
     * @return 应急手册目录
     */
    @Override
    public BmsEmergencyManualGroup selectBmsEmergencyManualGroupByID(String ID)
    {
        return bmsEmergencyManualGroupMapper.selectBmsEmergencyManualGroupByID(ID);
    }

    /**
     * 查询应急手册目录列表
     * 
     * @param bmsEmergencyManualGroup 应急手册目录
     * @return 应急手册目录
     */
    @Override
    public List<BmsEmergencyManualGroup> selectBmsEmergencyManualGroupList(BmsEmergencyManualGroup bmsEmergencyManualGroup)
    {
        return bmsEmergencyManualGroupMapper.selectBmsEmergencyManualGroupList(bmsEmergencyManualGroup);
    }

    /**
     * 新增应急手册目录
     * 
     * @param bmsEmergencyManualGroup 应急手册目录
     * @return 结果
     */
    @Override
    public int insertBmsEmergencyManualGroup(BmsEmergencyManualGroup bmsEmergencyManualGroup)
    {
        return bmsEmergencyManualGroupMapper.insertBmsEmergencyManualGroup(bmsEmergencyManualGroup);
    }

    /**
     * 修改应急手册目录
     * 
     * @param bmsEmergencyManualGroup 应急手册目录
     * @return 结果
     */
    @Override
    public int updateBmsEmergencyManualGroup(BmsEmergencyManualGroup bmsEmergencyManualGroup)
    {
        return bmsEmergencyManualGroupMapper.updateBmsEmergencyManualGroup(bmsEmergencyManualGroup);
    }

    /**
     * 批量删除应急手册目录
     * 
     * @param IDs 需要删除的应急手册目录主键
     * @return 结果
     */
    @Override
    public int deleteBmsEmergencyManualGroupByIDs(String[] IDs)
    {
        return bmsEmergencyManualGroupMapper.deleteBmsEmergencyManualGroupByIDs(IDs);
    }

    /**
     * 删除应急手册目录信息
     * 
     * @param ID 应急手册目录主键
     * @return 结果
     */
    @Override
    public int deleteBmsEmergencyManualGroupByID(String ID)
    {
        return bmsEmergencyManualGroupMapper.deleteBmsEmergencyManualGroupByID(ID);
    }
}
